home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Libraries / Graphic Elements 2 / Extras / SFXCtrlr.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-23  |  1.2 KB  |  52 lines  |  [TEXT/MMCC]

  1. /*
  2.     SFXCtrlr.h
  3.     
  4.     Special Effects controller element
  5.     
  6.     Copyright 1994 by Al Evans. All rights reserved.
  7.     
  8.     6/8/94
  9.     
  10. */
  11.  
  12. #ifndef SFXCTRLR
  13. #define SFXCTRLR
  14.  
  15. #include "GraphElements.h"
  16.  
  17. typedef struct SFXController *SFXCtrlrPtr;
  18.  
  19. typedef pascal void (*SFXProcessor)(SFXCtrlrPtr controller);
  20.  
  21. typedef struct SFXController {
  22.     GrafElement        baseGraphic;
  23.     GWorldPtr        sfxSrc;                // copy of subject's graphic
  24.     SFXProcessor    sfxProc;            // processor for this effect
  25.     Ptr                sfxData;            // extra data for sfxProc
  26.     long            firstStepTime;        // time first step will be executed
  27.     short            currentStep;        // number of step now displayed
  28.     short            nSteps;                // total number of steps
  29.     Boolean            forward;            // true if stepping forward
  30.     Boolean            sfxIn;                // true if graphic fading blank->graphic
  31. } SFXController;
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37.  
  38. //Make SFX controller and start effect
  39. GrafElPtr DoGESFX(GEWorldPtr world, OSType ctrlrID, GrafElPtr subjectElement,
  40.                 SFXProcessor fxProc, short nSteps, short delay, short stepTime, 
  41.                 Boolean fxIn, Boolean forward);
  42.  
  43.  
  44. //Autochange proc for SFX
  45. pascal void AdvanceSFX(GEWorldPtr world, GrafElPtr graphic);
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51.  
  52. #endif